package com.biShe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 被购单品详细记录表,从购物车传来并保存
 * </p>
 *
 * @author 小刘
 * @since 2023-05-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="BuyedGoods对象", description="被购单品详细记录表,从购物车传来并保存")
public class BuyedGoods implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "购买数量")
    private Integer number;

    @ApiModelProperty(value = "被购商品单价")
    private Float price;

    @ApiModelProperty(value = "每个用户选择的附加条件：加冰加糖等")
    private String property;

    @ApiModelProperty(value = "所选商品图片")
    private String image;

    @ApiModelProperty(value = "所选商品名")
    private String name;

    @ApiModelProperty(value = "购买时间")
    private String createdTime;

    @ApiModelProperty(value = "单品评价,之后由用户修改")
    private String remark;

    @TableLogic
    private Integer deleted;


}
